Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | function makeRbFrame() { |
||
2 | rb_data.forEach(function(rb_widget, index) { |
||
|
|||
3 | var rb_ifrm = document.createElement( "IFRAME" ); |
||
4 | var rb_src_domain = "&srcd=" + document.location.href.replace( /^[a-z:]+\/\//,"" ).replace( /\/.*/,"" ); |
||
5 | rb_ifrm.setAttribute( "src", rb_widget.url + rb_src_domain ); |
||
6 | rb_ifrm.style.width = rb_widget.width; |
||
7 | rb_ifrm.style.height = rb_widget.height; |
||
8 | rb_ifrm.style.border = "none"; |
||
9 | rb_ifrm.frameBorder = "0px"; |
||
10 | document.getElementById( 'rb-widget-' + index ).appendChild( rb_ifrm ); |
||
11 | }); |
||
12 | } |
||
13 | makeRbFrame(); |
||
14 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.